﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EntityFrameWorkLearning
{
    partial class Product
    {
        partial void OnStandardCostChanging(decimal value)
        {
            if (value < 0)
                throw new InvalidOperationException ("The standard cost cannot be less than 0");
        }
    }
}
